-- GENERATED SPELL FOR [Vile Torturer] --


function spell0_32279(pUnit, Event) --@Shadow Word: Pain,n/a--
pUnit:FullCastSpellOnTarget(14032,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32279', 18000, 1)
end

function Sorts_32279(pUnit, Event)
local choix_sorts_32279 = math.random(0, 0)
if choix_sorts_32279 == 0 then
pUnit:RegisterEvent('spell0_32279', 1, 1)
end
end

function mob32279_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32279', math.random(1500, 3000), 1)
end

function mob32279_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32279_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32279_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32279, 1, 'mob32279_Action')
RegisterUnitEvent(32279, 2, 'mob32279_Leave')
RegisterUnitEvent(32279, 3, 'mob32279_Kill')
RegisterUnitEvent(32279, 4, 'mob32279_Die')
